from django.conf import settings
from django.conf.urls import *
from django.conf.urls.defaults import *

from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('CLOUDONE.views',
    (r'^$', 'index'),
)

urlpatterns += patterns('',
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',
            (r'^tpl/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.SITE_MEDIA, 'show_indexes': True})
    )

